package rpcdemo

import "errors"

// Service.Method

type RpcDemo struct{}
type Args struct{
	A,B int
}
func (RpcDemo) Div(args Args,result *float64) error{
	if args.B == 0 {
		return errors.New("division by zero")
	}
	*result = float64(args.A) / float64(args.B)
	return nil
}